print(0.1 + 0.2 == 0.3)

print(0.1)
print(0.2)
print(0.1 + 0.2)
#浮点数==比较存在风险
#作差小于误差范围

a = 0.1 + 0.2
b = 0.3

#python支持连续小于的写法
print(-0.000001 < (a - b) < 0.000001)

